<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的购物车</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    .con {
        top: 10px;
        /* margin-top: 20px; */
        margin-left: 10px;
        width: 200px;
        height: 40px;
        border: 1px solid white;
        text-align: center;
        background-color: #f4f4f4;
        position: relative;
    }

    .nav {
        background: url(../img/购物车.png) no-repeat;
        background-size: cover;
        width: 30px;
        height: 30px;
        position: absolute;
        top: 5px;
        left: 30px;
    }


    .content {
        color: red;
        font-size: 14px;
        /* align-items: center; */
        line-height: 40px;
        margin-left: 5px;
    }

    .digit {
        position: absolute;
        font-size: 12px;
        background-color: red;
        color: white;
        border-radius: 30%;
        left: 50px;
        z-index: 999;
        top: 5px;
    }
</style>

<body>
    <div class="con">
        <div class="digit">99</div>
        <div class="nav"></div>
        <a
            href="https://www.jd.com/?cu=true&utm_source=baidu-pinzhuan&utm_medium=cpc&utm_campaign=t_288551095_baidupinzhuan&utm_term=0f3d30c8dba7459bb52f2eb5eba8ac7d_0_2331424196bc4a049c7d81cbeef47b7d">
            <h1><span class="content">我的购物车</span></h1>
        </a>
    </div>
</body>

</html>